package com.j283_5.wisdom_park.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.j283_5.wisdom_park.pojo.Maintenance;
import com.j283_5.wisdom_park.pojo.MaintenanceDelivery;
import com.j283_5.wisdom_park.pojo.MaintenanceRecord;
import com.j283_5.wisdom_park.vo.maintenance_management.MaintenanceDeliveryVo;
import com.j283_5.wisdom_park.vo.maintenance_management.MaintenanceVo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
public interface MaintenanceRecordService extends IService<MaintenanceRecord> {

    /**
     * 模糊查询所有的运维数据信息
     * @param page
     * @param maintenanceVo
     * @return
     */
    List<MaintenanceVo> queryAllMaintenance(Page page, MaintenanceVo maintenanceVo, Integer adminId);

    /**
     * 模糊查询运维数据信息的总条数
     * @return
     */
    Integer queryMaintenanceCount(MaintenanceVo maintenanceVo, Integer adminId);

    /**
     * 根据maintenanceId集合删除所有运维信息
     * @param maintenanceIdList
     * @return
     */
    boolean deleteMaintenance(ArrayList maintenanceIdList);

    /**
     * 根据运维详情id查询运维详细信息
     * @param mrecId
     * @return
     */
    MaintenanceDeliveryVo queryMaintenanceDelivery(Integer mrecId);

    /**
     * 根据运维id和管理员id来派送运维信息
     * @param mrecId
     * @param adminId
     * @return
     */
    boolean maintenanceDelivery(Integer mrecId, Integer adminId);
    /**
     * 运维设备
     * @param maintenanceDeliveryVo
     * @return
     */
    boolean updateMaintenanceDelivery(MaintenanceDeliveryVo maintenanceDeliveryVo);

    /**
     * 添加运维设备
     * @param maintenanceDeliveryVo
     * @param wrecId
     * @return
     */
    boolean addMaintenanceDelivery(MaintenanceDeliveryVo maintenanceDeliveryVo, Integer wrecId);
}
